//package app.dao;
//
//import javax.persistence.EntityManager;
//import javax.persistence.PersistenceContext;
//
//import org.springframework.stereotype.Repository;
//import org.springframework.transaction.annotation.Transactional;
//
//import app.model.Application;
//import app.model.Member;
//
///** 
// * 
// * @author Nachman Mathieu
// * @author David Gianorio
// * @author Faton Alia
// * 
// * This class is a Dao which contains the most common Dao methods */
//
//@Repository
//@Transactional
//public class GenericDao {
//
//	@PersistenceContext
//	private EntityManager em;
//
//	public synchronized Object findMember(Long id){
//		return em.find(Member.class, id);
//	}
//	
//	public synchronized Object findApplication(Long id){
//		return em.find(Application.class, id);
//	}
//
//	public synchronized Object merge(Object obj){
//		return em.merge(obj);
//	}
//
//	public synchronized void persist(Object obj){
//		em.persist(obj);
//	}
//
//// Put this method in comment, don't know if it's a good idea to use this one
////	/** This method will return the entityManager */
////	public EntityManager getEntityManager(){
////		return em;
////	}
//}